<div class="col-md-12">

	<p>
	  <strong>Title:</strong>
	  <%= @blog.title %>
	</p>

	<p>
	  <strong>Content:</strong>
	  <%= @blog.content %>
	</p>

	<p>
	  <strong>Time:</strong>
	  <%= @blog.time %>
	</p>

	<p>
	  <strong>Visible:
	  	<%= status_tag(@blog.visible)%>
	  </strong>
	  
	</p>

	<% if @blog.editable_by?(current_devise_user) %>
		<%= link_to '编辑', edit_blog_path(@blog), class: "btn btn-sm btn-default" %> 
	<% end %>
	<%= link_to '返回', blogs_path, class: "btn btn-sm btn-default"%>
</div>